<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title></title>
		<script type="text/javascript" src="http://www.google.com/jsapi"></script>
    <script type="text/javascript">
google.load('friendconnect', '0.8');
    </script>
		<script type="text/javascript" src="./makeRequestProxy.js"></script>
    <script type="text/javascript">
google.friendconnect.container.setNoCache(1);
google.friendconnect.container.setParentUrl('/svn/trunk/');
google.friendconnect.container.initOpenSocialApi({
  site: '05678604299044637748',
  onload: init
});
function init() {
  $('xdrequest').disabled = false;
}
function xdRequest() {
  gadgets.io.makeRequest($('url').value, function(res){
    document.getElementById('result').value = res.data; 
  });
}
function $(id) { return document.getElementById(id) }
</script>
	</head>
	<body>
    <input type="text" value="http://www.google.com" id="url" size="80" />
    <input type="button" id="xdrequest" value="Fetch" onclick="xdRequest()" disabled="true" />
    <hr />
    <textarea id="result" style="width:100%;height:400px;"></textarea>
	</body>
</html>

